<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    
</body>
</html>
<script>
    var sum = prompt("请输入今天星期几")
    switch(sum){
        case '星期一' :console.log('今天该学习');break
        case '星期二' :console.log('今天该休息');break
        case '星期三' :console.log('今天该学习');break
        case '星期四' :console.log('今天该休息');break
        case '星期五' :console.log('今天该学习');break
    }
</script>